/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaces;

/**
 *
 * @author Daryna_Ragimova
 */
public interface myQueue<E> {
    /**
     * Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions
     * @param e - the element to add
     */
     void offer(E e); 
     /**
      * Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
      * @return the head of this queue, or null if this queue is empty
      */
     E peek();
     /**
      * Retrieves and removes the head of this queue, or returns null if this queue is empty.
      * @return the head of this queue, or null if this queue is empty
      */
     E poll();
}
